let path=require('path')
let Plu1=require('./plugins/plu1.js')
console.log('------开始打包-----')
module.exports={
    mode:"development",
    entry:'./src/index.js',
    output:{
        path:path.join(__dirname,'dist'),
        filename:'main.js'
    },
    module:{
        rules:[
            {
                test:/\.js$/,
                exclude:/node_modules/,
                use:['loa1']
            }
        ]
    },
    resolveLoader:{
        modules:[
            'node_modules',
            path.join(__dirname,'./loader')
        ]
    },
    plugins:[
        new Plu1()
    ]
}